<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>流光按钮</title>

    <style>
        body {
            background-color: #111111;
        }
        
        button {
            display: block;
            margin: 300px auto;
            width: 200px;
            height: 100px;
            color: white;
            border: none;
            font-size: 30px;
            font-weight: 900;
            border-radius: 40px;
            background: linear-gradient(40deg, red, #FF00FF, green, pink);
            outline: none;
        }
        
        button:hover {
            animation: a 2s linear infinite;
        }
        
        @keyframes a {
            0% {
                background: linear-gradient(0deg, #ADD8E6, #B8860B, pink, blue);
                box-shadow: 0px 0px 100px 10px rgb(255, 1, 1);
                color: #B8860B;
            }
            25% {
                background: linear-gradient(45deg, #8FBC8B, red, pink, blue);
                box-shadow: 0px 0px 100px 10px rgb(255, 120, 10);
                color: red;
            }
            50% {
                background: linear-gradient(90deg, green, #CD5C5C, pink, #1E90FF);
                box-shadow: 0px 0px 100px 10px rgba(206, 13, 148, 0.3);
                color: #EE82EE;
            }
            75% {
                background: linear-gradient(180deg, #006400, #DAA520, #48D1CC, pink);
                box-shadow: 0px 0px 100px 10px rgba(73, 235, 10, 0.3);
                color: #4682B4;
            }
            100% {
                background: linear-gradient(360deg, #9400D3, #008000, #DDA0DD, blue);
                box-shadow: 0px 0px 100px 10px rgb(68, 0, 255);
                color: #87CEEB;
            }
        }
    </style>

</head>

<body>

    <button>流光按钮</button>



</body>

</html>